import React from 'react'
// import { Router, Route, IndexRoute, Redirect } from 'react-router'
import Home from '../pages/Home'
import PropertyList from '../pages/property/PropertyList' 
import PropertyAdd from '../pages/property/PropertyAdd'
import { BrowserRouter, Route,Link } from 'react-router-dom'
import  Silder from '../components/Silder'
export default () => (
    <BrowserRouter>
{/*        <div>
            <ul>
                <li><Link to='/'>首页</Link></li>
                <li><Link to='/property/list'>房源列表</Link></li>
                <li><Link to='/property/add'>添加房源</Link></li>
            </ul>
            <Route exact path="/" component={Home} /> 
            <Route path='/property/list' component={PropertyList} />
            <Route path='/property/add' component={PropertyAdd} />
        </div>*/}
        <Silder></Silder>
    </BrowserRouter>
)